const btn = document.querySelector("[data-btn]");
btn.addEventListener("click", () => {
  btn.classList.add("animating");
});

const path = document.querySelector("path");
const length = path.getTotalLength();
console.log(length);
